package vn.candyapp.qlct.database.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PaymentStatusList implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private ArrayList<PaymentStatus> paymentStatusList = new ArrayList<PaymentStatus>();

	public ArrayList<PaymentStatus> getPaymentStatusList() {
		return paymentStatusList;
	}

	public void setPaymentStatusList(ArrayList<PaymentStatus> paymentStatusList) {
		this.paymentStatusList = paymentStatusList;
	}
	
	public PaymentStatus getPaymentStatusAtPosition(int pos) {
		if (pos < paymentStatusList.size()) 
			return paymentStatusList.get(pos);
		return null;
	}
	
	public List<String> getPaymentStatusName() {
		List<String> data = new ArrayList<String>();
		for (PaymentStatus item : paymentStatusList) {
			data.add(item.getName());
		}
		return data;
	}

}
